<div class="searcher form">
<?php e($form->create('SearchIndex', array('url' => array('controller' => 'search_indexes', 'action' => 'index')))); ?>
    <fieldset>
        <?php e($form->input('term', array('label' => false, 'id' => 'SearchSearch', 'class' => 'input text'))); ?>
        <?php e($form->submit(__('Go', true), array('class' => 'submit attention', 'style'=>'clear:none'))); ?>
        <br class="clear"/>
        <?php e($html->link(__('Go to the search page', true), array('controller'=>'search_indexes', 'action'=>'index'))); ?>
    </fieldset>
<?php e($form->end()); ?>
</div>
<script type="text/javascript">
jQuery(function(){
    /* Validate on Search form */
    $('#SearchIndexAddForm').submit(function(event){
        if($('#SearchSearch').val() == ''){
            $.sme.notify('notice', '请输入搜索关键字');
            return false;
        }
    });
});
</script>